using System;
using AndyPike.Unfuddle.Entities;

namespace AndyPike.Unfuddle.Exceptions
{
    public abstract class RequestException : Exception
    {
        protected RequestException(string url, ErrorsCollection errors, string message) : base(message)
        {
            Url = url;
            Errors = errors;
        }

        public string Url { get; private set; }
        public ErrorsCollection Errors { get; private set; }
    }
}